package com.village.friend.service.impl;

import com.village.friend.entity.User;
import com.village.friend.entity.UserBlackList;
import com.village.friend.mapper.UserBlackListMapper;
import com.village.friend.service.UserBlackListService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yl
 * @since 2021-11-13
 */
@Service
public class UserBlackListServiceImpl extends ServiceImpl<UserBlackListMapper, UserBlackList> implements UserBlackListService {
    @Override
    public List<User> list(Integer userId, Integer offset, Integer limit) {
        return baseMapper.list(userId, offset, limit);
    }

    @Override
    public Integer listCount(Integer userId) {
        return baseMapper.listCount(userId);
    }

    @Override
    public List<User> listBeBlack(Integer userId, Integer offset, Integer limit) {
        return baseMapper.listBeBlack(userId, offset, limit);
    }

    @Override
    public Integer listCountBeBlack(Integer userId) {
        return baseMapper.listCountBeBlack(userId);
    }
}
